#include "../include/structure.h"

// 定义一个正在工作的子进程的函数
int sonProcMain(int local_socket){
    while (1){
        int net_fd;
        localNetFdRecv(&net_fd, local_socket);

        printf("son: net_fd:%d\n", net_fd);

        send(net_fd, "welcome to here", 15, 0);

        //sleep(1);
        //printf("son sleep\n");
    }
    return 0;
}